import 'package:ios_system_permission/ios_permission_status.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'ios_system_permission_method_channel.dart';

abstract class IosSystemPermissionPlatform extends PlatformInterface {
  /// Constructs a IosSystemPermissionPlatform.
  IosSystemPermissionPlatform() : super(token: _token);

  static final Object _token = Object();

  static IosSystemPermissionPlatform _instance =
      MethodChannelIosSystemPermission();

  /// The default instance of [IosSystemPermissionPlatform] to use.
  ///
  /// Defaults to [MethodChannelIosSystemPermission].
  static IosSystemPermissionPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [IosSystemPermissionPlatform] when
  /// they register themselves.
  static set instance(IosSystemPermissionPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<PermissionStatus?> getContactPermission() {
    throw UnimplementedError(
        'getContactPermission() has not been implemented.');
  }

  Future<PermissionStatus?> getPhotoPermission() {
    throw UnimplementedError('getPhotoPermission() has not been implemented.');
  }

  Future<PermissionStatus?> getTrackingPermission() {
    throw UnimplementedError(
        'getTrackingPermission() has not been implemented.');
  }

  Future<PermissionStatus?> requestContactPermission() {
    throw UnimplementedError(
        'requestContactPermission() has not been implemented.');
  }

  Future<PermissionStatus?> requestPhotoPermission() {
    throw UnimplementedError(
        'requestPhotoPermission() has not been implemented.');
  }

  Future<PermissionStatus?> requestTrackingPermission() {
    throw UnimplementedError(
        'requestTrackingPermission() has not been implemented.');
  }
}
